body {
    font-family: 'Helvetica';
    background: url('wood.png');
    margin: 0;
    padding: 0;
}

div#screen {
    background: white;
    font-family: monospace;
    font-size: 24px;
    display: block;
    width: 1104px;
    height: 250px;
    margin: 25px auto;
    padding: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 3px 5px 1px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 3px 5px 1px rgba(0,0,0,0.3);
    box-shadow: 0 3px 5px 1px rgba(0,0,0,0.3);
}

div#keys {
    display: block;
    width: 1104px;
    margin: 25px auto;
    padding: 70px 10px 14px 10px;
    -webkit-border-radius: 10px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius: 10px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-radius: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 5px 0 #aaa, 0 6px 0 #7e7e7e, 0 5px 5px 1px rgba(0,0,0,0.5);
    -moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 5px 0 #aaa, 0 6px 0 #7e7e7e, 0 5px 5px 1px rgba(0,0,0,0.5);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 5px 0 #aaa, 0 6px 0 #7e7e7e, 0 5px 5px 1px rgba(0,0,0,0.5);

    background: #DCDCDC; /* Old browsers */
    background: -moz-linear-gradient(top, rgba(160,160,160,1) 0%, rgba(219,219,219,1) 8%, rgba(220,220,220,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(160,160,160,1)), color-stop(8%,rgba(219,219,219,1)), color-stop(100%,rgba(220,220,220,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(160,160,160,1) 0%,rgba(219,219,219,1) 8%,rgba(220,220,220,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(160,160,160,1) 0%,rgba(219,219,219,1) 8%,rgba(220,220,220,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(160,160,160,1) 0%,rgba(219,219,219,1) 8%,rgba(220,220,220,1) 100%); /* IE10+ */
    background: linear-gradient(top, rgba(160,160,160,1) 0%,rgba(219,219,219,1) 8%,rgba(220,220,220,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a0a0a0', endColorstr='#dcdcdc',GradientType=0 ); /* IE6-9 */
}

button {
    font-family: 'Helvetica';
    width: 66px;
    height: 66px;
    background: #f1f1f1; /* Old browsers */
    background: -moz-linear-gradient(top, #f1f1f1 0%, #dfdfdf 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f1f1f1), color-stop(100%,#dfdfdf)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #f1f1f1 0%,#dfdfdf 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #f1f1f1 0%,#dfdfdf 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #f1f1f1 0%,#dfdfdf 100%); /* IE10+ */
    background: linear-gradient(top, #f1f1f1 0%,#dfdfdf 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f1f1', endColorstr='#dfdfdf',GradientType=0 ); /* IE6-9 */
    border: 1px solid #7e7e7e;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    -moz-box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    color: #878787;
    text-shadow: 0 1px 1px #fff;
    font-size: 16px;
    font-weight: bold;
}

button:active {
    margin-top: 7px;
    margin-bottom: 3px;
    -webkit-box-shadow: inset 0 0 1px #fff, 0 1px 0 #aaa, 0 2px 0 #7e7e7e, 0 3px 3px #aaa;
    -moz-box-shadow: inset 0 0 1px #fff, 0 1px 0 #aaa, 0 2px 0 #7e7e7e, 0 3px 3px #aaa;
    box-shadow: inset 0 0 1px #fff, 0 1px 0 #aaa, 0 2px 0 #7e7e7e, 0 3px 3px #aaa;
}

button {
    float:left;
    margin: 5px;
}

div.row {
    clear: both;
}

div.row::after {
    display: block;
    content: '';
    clear: both;
}

button.delete {
    width: 106px;
}

button.tab {
    width: 106px;
}

button.caps-lock {
    width: 121px;
}

button.return {
    width: 127px;
}

button.shift {
    width: 162px;
}

button.active {
    color: blue;
}

button.command {
    width: 86px;
}

button.spacebar {
    width: 370px;
}

div#arrows {
    display: inline;
    width: 228px;
    position: relative;
}

div#arrows button {
    position: absolute;
    height: 33px;
}

button.left, button.down, button.right {
    top: 33px;
}

button.left:active, button.down:active, button.right:active {
    top: 35px;
}

button.up {
    top: 0;
}

button.up:active {
    top: 2px;
}

button.left {
    left: 0;
}

button.up, button.down {
    left: 76px;
}

button.right {
    left: 152px;
}

div#info {
    display: block;
    width: 1104px;
    margin: 25px auto;
    text-align: center;
    color: #878787;
    text-shadow: 0 1px 1px #fff;
    position: fixed;
    bottom: 10px;
}

a {
    text-decoration: none;
}

/*================================*/

#screen div{
    width: inherit;
    height:inherit;
    word-break:break-all; /*automatic break line*/
    overflow: auto;
}

#cursor{
    border-left:solid 1px;
}

.accepted{
    color: #7fb80e;
}


.console-button{
    font-size: 30px;
    height:30px;
    padding: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    -moz-box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #aaa, 0 4px 0 #7e7e7e, 0 5px 3px #aaa;
    color: #878787;
    text-shadow: 0 1px 1px #fff;
    font-weight: bold;
}

.shengmu{
    color:#f05b72;
}